package com.xmut.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.LongPKService;
import com.xmut.dao.FloorDao;
import com.xmut.entity.Floor;
import com.xmut.filter.FloorFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class FloorService extends LongPKService<Floor> {

    @Autowired
    private FloorDao dao;

    @Override
    protected BaseDao<Floor, Long> getDao() {
        return dao;
    }

    public List<Floor> query(FloorFilter filter) {
        return dao.query(filter);
    }
}
